package view;

import java.util.Observable;
import java.util.Observer;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;

public class ImageView extends JFrame implements Observer{

	JLabel jl;
	ImageIcon image;
	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public ImageView(final String title){
		super();
		
		jl = new JLabel();
		this.getContentPane().add(jl);
		this.setTitle(title);
		this.setVisible(true);
		this.setSize(300,300);
		this.setLocation(600, 100);
	}
	
	@Override
	public void update(Observable arg0, Object arg1) {
			jl.setIcon((new ImageIcon((String)arg1)));
	}
	
	

}
